package demo3;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description: 合并两个有序数组
 * User: liangyuanzhang
 * Date: 2025-3-12
 * Time: 21:59
 */
class Solution {
    public void merge(int[] nums1, int m, int[] nums2, int n) {
        for (int i = 0; i != n; ++i) {
            nums1[m + i] = nums2[i];
        }
        Arrays.sort(nums1);
    }
}
public class Test {
}
